Tenzo interview question

Reverse a substring at certain points in a string.