//For high-performance
string input = "Hello World";
Span<char> buffer = stackalloc char[input.Length];
for (int i = 0; i < input.Length; i++)
{
buffer[i] = input[input.Length - 1 - i];
}
string reversed = new string(buffer);
Console.WriteLine(reversed);


