Amazon interview question

graphs, bfs ,dfs, recursions and 2 pointers