PayPal interview question

Binary Tree and Two Pointer.