#include <bits/stdc++.h>
#include<iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include<set>
#include<map>
#include<string>
#include<functional>
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);
#define ll long long
#define tc() ll tc;cin>>tc;while(tc--)
#define For(a,b) for(ll i=a;i<b;i++)
#define arrin(arr,n) for(ll i=0;i<n;i++) cin>>arr[i];
#define matin(arr,n,m) for(ll i=0;i<n;i++) for(ll j=0;j<m;j++) cin>>arr[i][j]
#define matout(arr,n,m) for(ll i=0;i<n;i++){ for(ll j=0;j<m;j++) cout<<arr[i][j]<<" ";  cout<<endl;}
#define vect vector<ll>
#define vectout(v) for (int i = 0; i < v.size(); i++) cout<<v[i]<<" "; cout<<endl
#define eb emplace_back
#define pb pop_back
#define vsort(v) sort(v.begin(), v.end())
#define mod 1e9 + 7;
using namespace std;

int main() {
	fast

	
	tc(){
		ll n,c=0;
		cin>>n;
		ll arr[n],brr[n];
		arrin(arr,n);
		For(0,n){
			if(i%2 == 0){
				brr[i]=arr[i/2];
			}
			else{
				c++;
				brr[i] = arr[n-c];
			}
		}
		For(0,n)
		cout<<brr[i]<<" ";
		cout<<endl;
	}

}