Remove Duplicates from sorted array I solved