using System;
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
ReverseString("nithya");
}
public static void ReverseString(string str){
string resstr="";
for(int i=0;i<str.Length;i++){
resstr=str[i]+resstr; // correct nithya will reversed
Console.WriteLine( resstr);
//resstr=str[i]+resstr; //in this line nithya reverse we get 'a' missed