23andMe interview question

Detect and remove loop in a linked list.