Gemini Solutions interview question

Detect loop in a linked list