Teradata interview question

Solve binary tree with BFS.