#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);
#define pb push_back
#define pl pair<ll, ll>
#define vl vector<ll>
#define mp make_pair
#define mod 1000000007
#define N 1000001


int main()
{
    fastIO
    ll t;cin>>t;
    while(t--)
    {
        ll n;cin>>n;
        ll a[n];
        for(ll i=0;i<n;i++)
        cin>>a[i];
        ll s=0,e=n-1;
        ll cnt=0;
        while(s<=e)
        {
            if(cnt%2==0)
            cout<<a[s++]<<" ";
            else
            {
                cout<<a[e--]<<" ";
            }
            cnt+=1;
        }
        cout<<"\n";
    }
}