#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const int inf = 0x7fffffff;
const int maxn = 1e5 + 5;
const int mod = 1e9 + 7;
const int dir8[8][2] = {{-1,0},{1,0},{0,-1},{0,1},{-1,-1},{-1,1},{1,-1},{1,1}};
const int dir4[4][2] = {{-1,0},{1,0},{0,-1},{0,1}};

int arr[maxn];

int main()
{
    int t;
    cin >> t;
    while(t--) {
        int n;
        cin >> n;
        for(int i = 1; i <= n; i++) {
            cin >> arr[i];
        }
        for(int i = 1,j = n;i <= j ; i++,j--) {
            if(i == j) {
                cout << arr[i] << endl;
                break;
            }
            cout << arr[i] << ' ' << arr[j] << ' ';
        }
    }
    return 0;
}