Question d’entretien chez Meta

Find the connected components in a graph.