Google Interview Question

Bfs variation with trees, directed towards the iterative approach