public static void Main()
string input = "My name is Godson";
Console.WriteLine(Program.DisplayName(input));
Console.WriteLine("The Reversed");
Console.WriteLine(Program.ReverseStr(input));
public static string DisplayName(string x)
public static string ReverseStr(string x)
string[] words = x.Split(' ');
int ArrLen = words.Length;
for(int i = 0; i < ArrLen; ArrLen--)
output += words[ArrLen - 1] + " ";