#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, ct = 0;
    cin >> n;
    string st;
    cin >> st;
    vector<char> v;
    for (int i = 0; i < n; i++) {
      v.push_back(st[i]);
    }
    for (int i = 0, j = n - 1; i < n / 2; i++, j--) {
      if (v[i] + 1 == v[j] + 1 || v[i] - 1 == v[j] - 1 ||
          v[i] + 1 == v[j] - 1 || v[i] - 1 == v[j] + 1)
        ct++;
    }
    if (n / 2 == ct)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
