Pergunta de entrevista da empresa Automated Health Systems

How to reverse a string?