#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int comp(void const *p,void const *q)
{
    return *(int *)p- *(int *)q;
}

int main()
{
    int mid,arr[1000],i,t,n,val[1000],k,j;

    scanf("%d",&t);

    while(t--)
    {
        scanf("%d",&n);

        for(i=1;i<=n;i++)
        {
            scanf("%d",&arr[i]);
        }

        mid = (n+1)/2;

        for(k=1,i=1;k<=mid;k++,i+=2)
        {
            val[i] = arr[k];
        }



        for(i=2,k=n;k>mid;k--,i+=2)
        {
            val[i] = arr[k];
        }

        for(i=1;i<=n;i++)
            printf("%d ",val[i]);
        printf("\n");
    }

    return 0;
}
