American Express Interview Question

How to detect loops in a linked list