#include <bits/stdc++.h>
#define TEST int t; cin>>t;while(t--)
using namespace std;

int main()
{
    TEST{

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

        int k=0,l=n-1;

        for(int i=0 ; i<n ;i++)
            if((i+2)%2==0) cout<<a[k++]<<" ";
            else cout<<a[l--]<<" ";

        cout<<"\n";
    }
}