X interview question

Binary Tree search