Adobe interview question

write C code on paper to remove duplicate entry in link list.