Cisco interview question

How to detect repeated nodes in linked list