#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, i, j, a, b, x;
  cin >> t;
  while (t--) {
    cin >> a;
    if (a < 4) {
      cout << -1 << endl;
      continue;
    }
    x = a;
    if (x % 2 == 0) x--;
    for (x; x > 0; x = x - 2) cout << x << " ";
    cout << "4 2 ";
    for (x = 6; x <= a; x = x + 2) cout << x << " ";
    cout << endl;
  }
}
