ServiceNow interview question

How to detect cycle in linked list?