Amazon Interview Question

is the gragh valid binary tree