using System;
public class Program
{
public static void Main()
string str = "Hello, World!";
char[] charArray = str.ToCharArray();
Array.Reverse(charArray);
string reversedStr = new string(charArray);
Console.WriteLine("The reversed string is: " + reversedStr);
}