PayPal interview question

question related to binary search trees