#include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    int t;
    cin >> t;
    while(t--){
        int n;
        cin >> n;
        int arr[n];
        for(int i = 0; i < n; i++){
            cin >> arr[i];
        }
        int i = 0;
        int j = n - 1;
        while(i < j){
            cout << arr[i] << " ";
            cout << arr[j] << " ";
            i++;
            j--;
        }
        if(i == j){
            cout << arr[i] << " ";
        }
        cout << endl;
    }
}