Given an array of integers, remove all even elements that occur exactly twice. Return the new size of the array.