Question d’entretien chez Amazon

Leet code medium problem which required knowledge of trees