Solve "Remove Duplicates from Sorted List2" brute-force