Adding solution for removing duplicates in single linked list.