Pergunta de entrevista da empresa Xgile IT

How would you reverse a string?