def reverseString(self, s: List[str]) -> None: """ Do not return anything, modify s in-place instead. """ n=len(s) left,right=0,n-1 while left<right: temp=s[left] s[left]=s[right] s[right]=temp left,right=left+1,right-1 return s