Question d’entretien chez Amazon

tree traversal - leetcode medium to hard question