Score : $200$ points
You are given integers $L$, $R$, and a string $S$ consisting of lowercase English letters.
Print this string after reversing (the order of) the $L$-th through $R$-th characters.
Input is given from Standard Input in the following format:
$L$ $R$ $S$
Print the specified string.
3 7 abcdefgh
abgfedch
After reversing the $3$-rd through $7$-th characters of abcdefgh
, we have abgfedch
.
1 7 reviver
reviver
The operation may result in the same string as the original.
4 13 merrychristmas
meramtsirhcyrs