In this Kata, you will be given a string and two indexes (`a` and `b`). Your task is to reverse the portion of that string between those two indices inclusive. 

~~~if-not:fortran
```
solve("codewars",1,5) = "cawedors" -- elements at index 1 to 5 inclusive are "odewa". So we reverse them.
solve("cODEWArs", 1,5) = "cAWEDOrs" -- to help visualize.
```
~~~
~~~if:fortran
```
solve("codewars",2,6) = "cawedors" -- elements at indices 2 to 6 inclusive are "odewa". So we reverse them.
solve("cODEWArs", 2,6) = "cAWEDOrs" -- to help visualize.
```
~~~

Input will be lowercase and uppercase letters only. 

The first index `a` will always be lower that than the string length; the second index `b` can be greater than the string length. More examples in the test cases. Good luck!

Please also try:

[Simple time difference](https://www.codewars.com/kata/5b76a34ff71e5de9db0000f2)

[Simple remove duplicates](https://www.codewars.com/kata/5ba38ba180824a86850000f7)

~~~if:fortran
*NOTE: You may assume that all input strings will* **not** *contain any (redundant) trailing whitespace.  In return, your returned string is* **not** *permitted to contain any (redundant) trailing whitespace.*
~~~

Difficulty: introductory

Starter code:

def solve(st,a,b):
	

Solutions:
def solve(s,a,b):
    return s[:a]+s[a:b+1][::-1]+s[b+1:]

def solve(st,a,b):
    return st[:a]+st[a:b+1][::-1]+ st[b+1:]

def solve(st,a,b):
    return f'{st[:a]}{st[a : b + 1][::-1]}{st[b + 1 :]}'

def solve(st,a,b):
    sub, rev = st[a:b+1], st[a:b+1][::-1]
    return st.replace(sub, rev)

def solve(st,a,b):
    sub = st[a:b+1]
    rev = sub[::-1]
    return st.replace(sub, rev)

def solve(s, m, n):
    return s[n::-1] + s[n+1:] if m == 0 else s[:m] + s[n:m-1:-1] + s[n+1:]

def solve(st,a,b):
    str = st[a:b+1]
    st = st.replace(st[a:b+1], str[::-1])
    return st

def solve(st,a,b):
    c = st[a:b+1]
    front = st[:a]
    back = st[b+1::]
    
    everything =  front + c[::-1] + back
    return everything

solve = lambda st,a,b: st[:a]+st[a:b+1][::-1]+st[b+1:]

def solve(st,a,b):
    str=st[a:b+1]
    str_new=str[::-1]
    res=st.replace(str,str_new)
    return res