#include <bits/stdc++.h>      using namespace std;      #define ar array   #define ll long long      const int MAX_N = 1e5 + 1;   const int m = 1e9 + 7;   const int INF = 1e9;   const ll LINF = 1e18;      int main()   {    int t=1;    cin>>t;    int n;    while(t--)    {     cin>>n;     int A[n];     for(int i=0;i<n;i++)cin>>A[i];     int x=0,y=n-1;     while(x<=y){      cout<<A[x]<<   ;      if(x!=y)cout<<A[y--]<<   ;      x++;     }     cout<<endl;    }      return 0;   }