Amazon interview question

Solve a binary tree search