AppLogic Networks Interview Question

BFS on tree using queue.