Meta interview question

reverse string in place with O(1) space