Cisco interview question

linked list loop detection