Pergunta de entrevista da empresa PayPal

least common ancestor in a binary tree