#include<bits/stdc++.h>
using namespace std;
int b[303];
int main()
{
	int t,n;
	cin>>t;
	while(t--)
	{
		cin>>n;
		memset(b,0,sizeof(b));
		for(int i=1;i<=n;i++)
		{
			cin>>b[i];
		}
		for(int i=1;i<=(n+1)/2;i++)
		{
			cout<<b[i]<<" ";
			if(i!=(n+1)/2||n%2==0)
			{
				cout<<b[n-i+1]<<" ";
			}
		}
		cout<<endl;
	}
	return 0;
}