Example 1:
Input: s = ["h","e","l","l","o"]
Output: ["o","l","l","e","h"]
Example 2:
Input: s = ["H","a","n","n","a","h"]
Output: ["h","a","n","n","a","H"]
Constraints:
1 <= s.length <= 2 * 105
s
consists only of printable ASCII characters.KEY1: in-place reverse
class Solution(object):
def reverseString(self, s):
s.reverse()