/**
 *  Author  : Dhakad@123
 *  Created : 27.01.2021
 **/

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


int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);

/*
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);*/

	int tt;
	cin >> tt;

	while(tt--){
		int n;
		cin >> n;
		vector<int> arr(n);

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

		vector<int> ans(n);

		int i = 0; 
		int j = n - 1;
        int k = 0;
		while(i <= j){
			ans[k++] = arr[i++];
            ans[k++] = arr[j--];
		}
		for(int st = 0; st < n; st++){
			cout << ans[st] << " ";
		}
		cout << endl;
	}

	return 0;
}