<p>Write a function that reverses a string. The input string is given as an array of characters <code>s</code>.</p>
<p>You must do this by modifying the input array <ahref="https://en.wikipedia.org/wiki/In-place_algorithm"target="_blank">in-place</a> with <code>O(1)</code> extra memory.</p>