Oracle Interview Question

Solve the connected components of a graph algorithm question.