Google interview question

DFS from each unvisited node/Island problems