
Reverse an array of characters in place. Modify the input array by swapping characters from the ends toward the center, using constant extra space.
["h", "e", "l", "l", "o"]Output["o", "l", "l", "e", "h"]WhyMirror swaps reverse the array.["H", "a", "n", "n", "a", "h"]Output["h", "a", "n", "n", "a", "H"]WhySwap outer pairs, then continue inward.`1 <= len(s) <= 10^5``s[i]` is a single printable characterUse `O(1)` extra space