Solve "Remove Duplicates from Sorted List 2" brute-force