#include<iostream>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        int a[n];
        for(int i=0;i<n;i++)
            cin>>a[i];
        int c=0;
        int b[n];
        while(c!=n)
        {
            if(c%2==0)
                b[c]=a[c/2];
            else
                b[c]=a[n-(c/2)-1];
            c++;
        }
        for(int i=0;i<n;i++)
            cout<<b[i]<<" ";
        cout<<"\n";
    }
}
