Create remove duplicate sorted array I and II