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

#define endl '\n'
#define ll long long
int t,n,k;
int main()
{
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    cin>>t;
    while (t--)
    {
        cin>>n>>k;
        if ((n-1)/2<k) {cout<<-1<<endl;continue;}
        int l=1,r=n;
        for (int i=1;i<=n;i++)
        {
            if (i&1 && k) {cout<<l<<' ';l++;k--;}
            else {cout<<r<<' ';r--;}
        }
        cout<<endl;
    }
    return 0;
}
