Meta interview question

BFS on binary tree with some twist