Pregunta de entrevista de IBM

I remember there was a string change question.