Pregunta de entrevista de AgilizTech Software Services

How to reverse a string?