IBM interview question

Some basic string manipulation thing