Token.io interview question

Questions on BFS graph traversals