Question d’entretien chez Amazon

Binary tree two sum problem.