
#include <iostream>

using namespace std;


int main(){
    // cout << "H";
    int t,i;
    cin >> t;
    for(i=0;i<t;i++){
        int n,j,m=0;
        cin >> n;
        int *a, *ans;
        a = (int*)malloc(n*sizeof(int));
        ans = (int*)malloc(n*sizeof(int));
        for(j=0;j<n;j++)
        {
            cin >> a[j];
            // cout << a[j]<<" ";
        }
        // cout<<endl;
        for(j=0;j<n;j+=2){
            ans[j] = a[m];
            m++;
        }
        m=n-1;
        for(j=1;j<n;j+=2){
            ans[j] = a[m];
            m--;
        }
        for(j=0;j<n;j++)
            cout << ans[j] <<" ";
        cout<<endl;   
    }
    return 0;
}