Royal Brothers interview question

How to detect a cycle in a linked list