Remove Duplicates from Sorted Array problem