#include <bits/stdc++.h>
using namespace std;
int t, n;
string s;
int main() {
  ios::sync_with_stdio(false);
  cin >> t;
  for (; t > 0; t--) {
    cin >> n >> s;
    bool moze = true;
    for (int i = 1; i <= n / 2; i++) {
      if (s[i - 1] != s[n - i] && s[i - 1] != s[n - i] + 2 &&
          s[i - 1] != s[n - i] - 2) {
        moze = false;
      }
    }
    if (moze) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
