ThousandEyes Interview Question

BFS/DFS implementation