Question d’entretien chez Qualcomm

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