Autodesk interview question

How to detect a cycle in a graph?