static string Reverse()
2
{
3
string s = "I am a good man";
4
string[] arr = s.Split(' ');
5
string res = "";
6
for (int i = arr.Length - 1; i >= 0; i--)
7
{
8
res += arr[i];
9
if (i > 0)
10
res += " ";
11
}
12
return res;
13
}