Hyperscience interview question

Programming problem about BFS and DFS