Monika interview question

change of a string in a substring