passed: RemoveDuplicatesfromSortedArray