Calsoft Interview Question

write a linked list program to find the duplicate elements