public static void Main()
string str="ABCDEFGHIJK";
public static void ReverseString(string str)
char[] charArray = str.ToCharArray();
for (int i = 0, j = str.Length - 1; i < j; i++, j--)
string reversedstring = new string(charArray);
Console.WriteLine(reversedstring);