#include<bits/stdc++.h>
#define ll long long

using namespace std;
int main()
{
	int t;cin>>t;
	while(t--)
	{
		ll n,temp;
		
		cin>>n;
		if(n==1)
		{
			cin>>temp;
			cout<<temp<<endl;
		}
		else{
		
		ll a[n];
		ll b[n];
		ll j=0;
		for(int i=0;i<n;i++)
		{
			cin>>a[i];
			
			if(i<n/2)
			{
				b[j]=a[i];
				j+=2;
			}
			if(i==n/2 && n/2!=0)
			{
				b[n-1]=a[i];
			}
			
		}
		 j=1;
		for(int i=n-1;i>=n/2;i--)
		{
			b[j]=a[i];
			j+=2;
		}
		
		for(int i=0;i<n;i++)
		{
			cout<<b[i]<<" ";
		}
		cout<<endl;
		}
	}
}
