Question d’entretien chez Meta

reverse string in place with O(1) space