Rudder Analytics interview question

Detect loop in a linked list.