Comodo interview question

How to detect a cycle in a linkedlist?