WD interview question

Remove duplicate in a unsorted linked list