IBM Interview Question

Some basic string manipulation thing