#include <bits/stdc++.h>
using namespace std;

#define ll  long long int
int max(int MX, int MN) {return (MX>MN) ? MX:MN;}
int min(int MX, int MN) {return (MX<MN) ? MX:MN;}



int main()
{
    #ifndef ONLINE_JUDGE
        //Read input
        freopen("input.txt", "r", stdin);
        //Write output
        freopen("output.txt", "w", stdout);
    #endif

    ll t;
    cin >> t;
    
    while(t--) {
        ll n;
        cin >> n;

        ll ar[n];

        for(ll i=0; i<n; i++) {
            cin >> ar[i];
        }

        if(n%2 == 0) {
            ll j = n-1;
            ll count = 0;
            for(ll i=0; i<n/2; i++) {
                cout << ar[i] << " ";
                count++;
                if(count == n) {
                    break;
                }

                cout << ar[j] << " ";
                j--;
                count++;
                if(count == n) {
                    break;
                }
            }
        }
        else {

            ll j = n-1;
            ll count = 0;
            for(ll i=0; i<n/2+1; i++) {
                cout << ar[i] << " ";
                count++;
                if(count == n) {
                    break;
                }

                cout << ar[j] << " ";
                j--;
                count++;
                if(count == n) {
                    break;
                }
            }
        }
        cout << "\n";
    }

    return 0;
}