Qualcomm Interview Question

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