AC Solution remove duplicates form sorted list II