Solved RemoveDuplicatesFromSortedArrayII

Similar to part 1, but maintain a count of occurences