#include<iostream>
using namespace std;
int main()
{
int a[10001],n,t,zh,i=0;
cin>>t;
for(int y=1;y<=t;y++)
{
zh=1;
a[10001]={};
cin>>n;
i=n;
for(int y=1;y<=n;y++)
{
cin>>a[y];
}
if(n%2==0)
{
for(int y=1;y<=n/2;y++)
{
cout<<a[zh]<<" ";
cout<<a[i]<<" ";
zh=zh+1;
i=i-1;
}
}