#include <iostream>
using namespace std;
int main() {
    long long int t;
    cin>>t;
    while(t--)
    {
        long long int n;
        cin>>n;
        long long int a[1000000];
        for(long long int i=0;i<n;i++)
        {
            cin>>a[i];
        }
        if(n==1)
        {
            cout<<a[0]<<"\n";
             continue;
        }
        long long int s=0,e=n-1;
        while(s<=e)
        {
            if(s==e)
            {
                cout<<a[s]<<" ";
            }
            else
            cout<<a[s]<<" "<<a[e]<<" ";
            s++;
            e--;
        }
        cout<<endl;
    }
	return 0;
}