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

int main() {
    int t;
    cin>>t;
    while (t--){
        int n,k;
        cin>>n>>k;
        vector<int>v(n);
        for (int i =0;i<n;i++)
        v[i]=i+1;
        if (k==0){
            for (int i =0;i<n;i++)
            cout<<v[i]<<" ";
            cout<<endl;
        }else if (k>(n-1)/2)
        cout<<-1<<endl;
        else {
            int o =1;
            while (k--){
                swap(v[o],v[o+1]);
                o+=2;
            }
             for (int i =0;i<n;i++)
            cout<<v[i]<<" ";
            cout<<endl;
        }
        
       
        
    }
        
    
}