#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long q = 1;
  cin >> q;
  while (q--) {
    int n;
    cin >> n;
    if (n < 4) {
      cout << -1 << endl;
      continue;
    }
    int x;
    if (n % 2 == 1)
      x = n;
    else
      x = n - 1;
    while (x > 0) {
      cout << x << " ";
      x -= 2;
    }
    cout << 4 << " " << 2 << " ";
    x = 6;
    while (x <= n) {
      cout << x << " ";
      x += 2;
    }
    cout << endl;
  }
  return 0;
}
