#include <bits/stdc++.h>
#define ll long long
#define rep(i,a,b)    for(ll  i=a;i<b;i++)
#define arr(a,n)      rep(i,0,n) cin>>a[i]
using namespace std ;

void solve(){
    ll n;
    cin>>n;
    ll a[n];
    arr(a,n);
    ll mid=n/2;
    if(n%2==0){
    for(ll i=0,j=n-1;i<mid,j>=mid;)
    {
        cout<<a[i]<<" ";
        cout<<a[j]<<" ";
        i++;
        j--;
    }
    }
    else
    {
        for(ll i=0,j=n-1;i<mid,j>mid;)
    {
        cout<<a[i]<<" ";
        cout<<a[j]<<" ";
        i++;
        j--;
    }
    cout<<a[mid]<<" ";
    }
    cout<<endl;
}

 signed main()
      {
          ios_base::sync_with_stdio(false);
          cin.tie(0);
          cout.tie(0);
          ll t=1;
          cin>>t;
          while(t--) solve();
      }
