Turing Interview Question

detect cycle in linked list