Question d’entretien chez Amazon

Find duplicate elements from the given two linked lists.