Amazon Interview Question

Solve a binary tree search