#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n < 4)
      cout << -1 << endl;
    else {
      for (int i = n - 1 + n % 2; i >= 5; i -= 2) {
        cout << i << " ";
      }
      cout << 2 << " " << 4 << " " << 1 << " " << 3 << " ";
      for (int i = 6; i <= n; i += 2) {
        cout << i << " ";
      }
    }
  }
}
