Meta interview question

Find the connected components in a graph.