Question d’entretien chez Amazon

Coding question was on trees.