ITC Infotech Interview Question

Reverse a string with using for loop