Calsoft interview question

write a linked list program to find the duplicate elements