Question d’entretien chez Amazon

BFS tree question, you must do leetcode medium