using System;
public class Program
{
public static void Main()
string str = "dlroW olleH";
str = Reverse(str);
Console.WriteLine(str);
}
public static string Reverse(string text)
if (text == null) return null;
// this was posted by petebob as well
char[] array = text.ToCharArray();
Array.Reverse(array);
return new String(array);