Pergunta de entrevista da empresa CGI

Write a for loop that reverses a string.