PayPal interview question

least common ancestor in a binary tree