Oracle interview question

Cycle detection in a graph