IBM interview question

given a linked list remove duplicates