Domanda di colloquio di Qualcomm

Write a function that reverses a string in constant space complexity.