#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n < 4) {
      cout << -1 << "\n";
      continue;
    }
    deque<int> dq;
    dq.push_back(2);
    dq.push_back(4);
    dq.push_back(1);
    dq.push_back(3);
    n -= 4;
    int m = 5;
    int trn = 0;
    while (n > 0) {
      if (trn == 0)
        dq.push_front(m);
      else
        dq.push_back(m);
      m++;
      trn = trn ^ 1;
      n--;
    }
    auto it = dq.begin();
    while (it != dq.end()) {
      cout << *(it) << " ";
      it++;
    }
    cout << "\n";
  }
}
