Microsoft interview question

Removing duplicates from a single linked list