Question d’entretien chez Figma

bfs with tree, recursion problem