completed Remove Duplicates from Sorted Array II