#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using str = string;
const int INF = 1e9 + 7;
const int mod = 998244353;
const ll inf = 1e18;
const ull oo = 1000000000000001;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n <= 3) {
      cout << "-1\n";
      continue;
    }
    for (int i = n - (n % 2 ? 0 : 1); i > 0; i -= 2) {
      cout << i << ' ';
    }
    cout << 4 << ' ' << 2 << ' ';
    for (int i = 6; i <= n; i += 2) {
      cout << i << ' ';
    }
    cout << '\n';
  }
}
