#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll N = 2e5 + 10;
const ll inf = 1e18;
const ll MOD = 1e9 + 100;
int n;
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> n;
    if (n < 4)
      printf("-1\n");
    else {
      deque<int> q;
      q = {3, 1, 4, 2};
      for (int i = 5; i <= n; i++) {
        if (i % 2) {
          q.push_back(i);
        } else
          q.push_front(i);
      }
      for (int i = 0; i < q.size(); i++) printf("%d ", q[i]);
      printf("\n");
    }
  }
  return 0;
}
