Genentech interview question

Detect whether a linked list contains a cycle.