Remove duplicates from a sorted linked list

Remove duplicates from a sorted linked list