WWSTAY interview question

How to detect a cycle in linked list