Question d’entretien chez Oracle

Solve the connected components of a graph algorithm question.