static string reverseString(string str){
string output = "";
int length = str.Length-1;
for (int i = 0; i < length+1; i++)
{
output += str[length - i];
}
return output;
}