Toast Inc interview question

Technical question involving BFS/DFS