https://lucienshui.github.io/blog/posts/codeforces_1155a_reverseasubstring/
Codeforces - 1155A - Reverse a Substring - Lucien's Blog