/* gbrls/gas6 @ UFPE - 16:26 17/12/2020 */

#include <bits/stdc++.h>
 
#define ll long long int
#define ii pair<int,int>
 
using namespace std;
 
const int inf = 0x3f3f3f3f;
 
int main() {
    int t; scanf("%d",&t);
    while(t--) {
        int n; scanf("%d",&n);
        int arr[n];
        int arr2[n];
        for(int i=0;i<n;i++) {
            scanf("%d",&arr[i]);
            arr2[i] = arr[i];
        }

        reverse(arr2,arr2+n);

        int a = 0, b = 0;

        for(int i=0;i<n;i++) {
            if((i%2)==0) {
                printf("%d ", arr[a++]);
            } else {
                printf("%d ", arr2[b++]);
            }
        }
        putchar('\n');
    }
    return 0;
}
