PayPal interview question

Question on Binary Search tree