Pergunta de entrevista da empresa Tata Consultancy Services

How to reverse a string?