Google interview question

Related to binary search tree