#include <bits/stdc++.h>

using namespace std;

const int N = 300;
int a[N];

void solve(){
    int n;
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> a[i];
    }

    int left = 0, right = n - 1, index = 1;
    while(left <= right){
        if(index++ % 2){
            cout << a[left++] << " ";
        }
        else{
            cout << a[right--] << " ";
        }
    }
    cout << "\n";
}
int main(void){
    ios::sync_with_stdio(false); cin.tie(NULL);
    int t;
    cin >> t;
    while(t--) solve();
    return 0;
}