Meta Interview Question

Problem related to binary search tree.