#include<bits/stdc++.h>
using namespace std;
int main()
{
	int t;
	cin>>t;
	while(t--)
	{
		int n,i;
		cin>>n;
		int a[n];
		vector <int> v;

		for(i=0;i<n;i++)
			cin>>a[i];

		if(n%2!=0)
		{
			for(i=0;i<=(n/2);i++)
			{
				v.push_back(a[i]);
				if(i==(n/2))
					continue;
				v.push_back(a[n-i-1]);
			}
		}

		else
		{
			for(i=0;i<(n/2);i++)
			{
				v.push_back(a[i]);
				v.push_back(a[n-i-1]);
			}
		}

		for(i=0;i<v.size();i++)
			cout<<v[i]<<" ";
		cout<<"\n";
	}

	return 0;
}