#include<bits/stdc++.h>
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 l=0,r=n-1,turn=0;
          while(l<=r)
          {
               if(turn%2==0)
               {
                    cout<<a[l]<<" ";
                    l++;
               }
               else{
                    cout<<a[r]<<" ";
                    r--;
               }
               turn++;
          }
          cout<<"\n";
     }
     return 0;
}