using System;
namespace ConsoleApp1
{
public delegate string ReverseDelegate(string input);
public class Program
{
public static string Reverse(string input)
{
char[] charArray = input.ToCharArray();
Array.Reverse(charArray);
return new string(charArray);
}
public static void Main()
{
var inpt = "Hello world";
string reverse = Reverse(inpt);
Console.WriteLine(reverse);
}
}