func_code_string:    #include<bits/stdc++.h>   #define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL) ;cout.tie(NULL)   using namespace std;      #define ll long long int   #define pb push_back   #define endn   n    #define mp make_pair   #define ss second   #define ff first   #define deb(x) cout << #x <<     << x << endl   #define deb1(x,y) cout<<#x<<   <<x<<  ,  <<#y<<   <<y<<endl   #define deb2(x,y,z) cout<<#x<<   <<x<<  ,  <<#y<<   <<y<<  ,  <<#z<<   <<z<<endl   const long long INF = 1e18;      int small = INT_MIN;   int large = INT_MAX;      void solve() {    int n, k;    cin >> n >> k;    int a[n];    int i = 2, j = n;    a[0] = 1;    int t = 1;       while (k-- && t < n - 1) {     a[t] = j;     t++;     j--;     a[t] = i;     t++;     i++;    }       if (k != -1) {     cout << -1;    }    else {     while (i <= j) {      a[t] = i;      t++;      i++;     }     for (int x : a) {      cout << x <<    ;     }    }    cout << endn;      }      int main() {       fast_cin();       ll T = 1;    cin >> T;    while (T--) solve();       return 0;   }         