CGI Interview Question

Reverse the string using for loop