PayPal Interview Question

question related to binary search trees