Amazon interview question

Find duplicate elements from the given two linked lists.