DSA Key Problems

Remove Duplicates from Sorted List

Given the head of a sorted linked list, remove repeated occurrences so each value appears once and return the resulting head.