IBM interview question

programming: string manipulation, map, set