remove duplicates from sorted array - create solution