Nuacht

Given a sorted array nums, remove the duplicates in-place such that each element appears only once and return the new length. You must do this without using extra space for another array.