ThousandEyes interview question

BFS/DFS implementation