Write a function that reverses an array of characters in-place using O(1) extra memory.
s = ['h', 'e', 'l', 'l', 'o']
['o', 'l', 'l', 'e', 'h']