Pergunta de entrevista da empresa AgilizTech Software Services

How to reverse a string?