#define _CRT_SECURE_NO_WARNINGS
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<string>
#include<vector>
#include<stack>
#include<bitset>
#include<cstdlib>
#include<cmath>
#include<set>
#include<unordered_set>
#include<list>
#include<deque>
#include<map>
#include<unordered_map>
#include<queue>
using namespace std;
typedef long long ll;
const double PI = acos(-1.0);
const double eps = 1e-6;
const int INF = 0x3f3f3f3f;
const int N = 100;
#define mst(a,x) memset(a,x,sizeof(a))
typedef int Node;
void read1(Node arr[], int n, int start) {//读入一维arr
	//arr[]大小为n，从arr[start]开始存放，start一般是0或者1
	//注意设置Node类型
	for (int i = start; i < n + start; ++i)cin >> arr[i];
}
#define COL_SIZE 100
void read2(Node arr[][COL_SIZE], int ROW, int COL, int start) {
	//类似上read1，注意设置COL_SIZE
	for (int i = start; i < ROW + start; ++i)
		for (int j = start; j < COL + start; ++j) {
			cin >> arr[i][j];
		}
}
void solve() {
	ll n;
	cin >> n;
	vector<ll> a,b(n);
	for (int i = 0; i < n; ++i)cin >> b[i];
	ll i = 0, j = n - 1;
	bool turn = true;
	while (i <= j) {
		if (turn) {
			a.push_back(b[i++]); turn = false;
		}
		else {
			a.push_back(b[j--]); turn = true;
		}
	}
	//for (int i : a) {
	//	cout << a[i] << (i < a.size() - 1 ? " " : "\n");
	//}
	for (int i = 0; i < a.size(); ++i) {
		cout << a[i] << (i < a.size() - 1 ? " " : "\n");

	}
}

int main() {
	ios::sync_with_stdio(0); cin.tie(0);
//	freopen("t.txt", "r", stdin);
	
	int t;
	cin >> t;
	while (t--)solve();
	

	return 0;
}