Turing interview question

detect cycle in linked list