Given an array of integers, remove all elements that occur more than once, leaving the first occurrence. Return the new size of the array after removing the elements.