Creating Main Class
First of all, we have to create our Main class.
public static void Main()
{
string str = "a!!!b.c.d,e'f,ghi"; //Initialize string that we will reverse
Console.WriteLine("Input string: " + str);
string str2 = Reverse(str); //Reversing string
Console.WriteLine("Output string: " + str2);
}