Question d’entretien chez PayPal

least common ancestor in a binary tree