Tenzo Interview Question

Reverse a substring at certain points in a string.