Microsoft Interview Question

Graph search - make use of dfs