Gemini Solutions Interview Question

How to detect a loop in an array of pointers