public static void Main()
str = Console.ReadLine();
Console.WriteLine(Environment.NewLine);
Console.WriteLine("Output:");
Console.WriteLine(Environment.NewLine);
Console.WriteLine(Environment.NewLine);
Console.WriteLine(Environment.NewLine);
}while(!str.Equals(res));
str = Console.ReadLine();
public static string func(string str){
string[] strArray= str.Split(' ');
int len = strArray.Length -1;
if(strArray.Length % 2 == 0){
for(int i = 0;i < strArray.Length/2 ;i++){
res = res + strArray[len - i] + " " + strArray[i] + " ";
for(int i = 0;i < strArray.Length/2 ;i++){
res = res + strArray[len - i] + " " + strArray[i] + " ";
res = res + strArray[len/2];
return res.Replace(" "," ").Trim();