BlackRock interview question

How to detect cycle in linkedlist?