write function reverse stre the input string give array character syou modifying input array inplace O1 extra memory Example 1input s hellooutput ollehExample 2input s HannahOutput hannaH Constraints1 slength 105si printable ascii character