ICY Capital interview question

Q: remove duplicate elements from a singly linked list