Question d’entretien chez Teradata

Solve binary tree with BFS.