AppLogic Networks interview question

BFS on tree using queue.