Pergunta de entrevista da empresa Amazon

How would you reverse a string without using buffer variables?