Write a program to Reverse a string without using reverse function.

 

Output: