Samsung Electronics Interview Question

Detect if a linked list has a loop.