Meta interview question

Problem related to binary search tree.