Pregunta de entrevista de Tata Consultancy Services

Write a code to reverse a string