IBM interview question

find cycle in linked list