Solution to Remove Dup from Sorted Array