#include <bits/stdc++.h>
using namespace std;
struct pair_hash {
  template <class T1, class T2>
  std::size_t operator()(const std::pair<T1, T2> &p) const {
    auto h1 = std::hash<T1>{}(p.first);
    auto h2 = std::hash<T2>{}(p.second);
    return h1 ^ h2;
  }
};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t, i;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string name;
    cin >> name;
    int flg = 0;
    for (i = 0; i < n / 2; i++) {
      if (abs(name[i] - name[n - i - 1]) == 2 || name[i] == name[n - 1 - i])
        continue;
      flg = 1;
    }
    if (flg == 0)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
