#include<bits/stdc++.h>
using namespace std;
void solve(){
	int n;
	cin>>n;
	int arr[n];
	for(int i=0;i<n;i++){
		cin>>arr[i];
	}
	int value=n/2;
	for(int i=0;i<=value;i++){
		if(i!=value){
			cout<<arr[i]<<" "<<arr[n-i-1]<<" ";
		}
		else if(n%2!=0){
			cout<<arr[i];
		}
	}
	cout<<endl;
}
int main(void){
	int t;
	cin>>t;
	while(t--){
		solve();
	}
}
