Remove duplicates from a unsorted linked list

Remove duplicates from a unsorted linked list