Oracle interview question

How to detect a loop in linked list?