Adobe Interview Question

How to detect a cycle in a linked list?