Agoda interview question

Q: Detect a loop within a linked list