Amazon Interview Question

- BFS problem that I had to code live.