Pergunta de entrevista da empresa RTX

Write a program that can reverse a string.