Google interview question

Graph(N*M grid problem) Tree traversal(recursive dfs) 2 pointers