#include <bits/stdc++.h>
using namespace std;

typedef long long int ll;
typedef unsigned long long int llu;

#define gcd(a,b)    __gcd(a,b)


int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
        #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
    #endif

    int t;
    cin>>t;
    while(t--){
        int n;
        cin>>n;
        vector<int> v(n);
        for(int i=0;i<n;i++){
            cin>>v[i];
        }
        vector<int> res(n);
        int j=0;
        for(int i=1;i<=ceil(n/2.0);i++){
            res[j] = v[i-1];
            j+=2;
        }
        j=1;
        for(int i=n;i>=ceil(n/2.0)+1;i--){
            res[j] = v[i-1];
            j+=2;
        }

        for(int i=0;i<n;i++){
            cout<<res[i]<<" ";
        }
        cout<<"\n";
    }

    return 0;
}