Cisco interview question

Check a loop in a linked list