public static void Main()
string word = "hello world";
ReverseString(word.ToCharArray());
public static void ReverseString(char[] word)
int length = word.Length - 1;
reverse = reverse + word[length];
Console.WriteLine(reverse);
public string FrequencySort(string s)