remove duplicates from sorted array II - create solution