Pregunta de entrevista de Tenzo

Reverse a substring at certain points in a string.