#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
const int inf=1000000000;
const ll infll=1000000000000000000;

using namespace std;

void fast_IO(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
}

void test(){
	freopen("test.in", "r", stdin);
	freopen("test.out", "w", stdout);
}
                       
void solve(){     
	int n;
	cin >> n;
	int a[n];
	int ans[n];
	for(int i=0; i<n; i++){
		cin >> a[i];
	}
	for(int i=0; i<n; i++){
		if(i%2==0){
			ans[i]=a[i/2];
		}
		else{
			ans[i]=a[n-i/2-1];
		}
	}                      
	for(int i=0; i<n; i++){
		cout << ans[i] << " ";
	}
	cout << "\n";
}

int main(){
	fast_IO();
	//test();
	int t=1;
	cin >> t;
	while(t--)
		solve();
	
	return 0;
}