Google Interview Question

Related to binary search tree