#include <bits/stdc++.h>
using namespace std;
char s[105];
int main() {
  int t, i, n, j, l1, l2, r1, r2, flag, flag2;
  cin >> t;
  while (t--) {
    scanf("%d", &n);
    scanf(" %s", s);
    j = n - 1;
    flag2 = 0;
    for (i = 0; i < n / 2; i++) {
      l1 = s[i] + 1;
      l2 = s[i] - 1;
      r1 = s[j] + 1;
      r2 = s[j] - 1;
      j--;
      flag = 0;
      if (l1 == r1 || l1 == r2) flag = 1;
      if (l2 == r1 || l2 == r2) flag = 1;
      if (flag == 0) {
        flag2 = 1;
        break;
      }
    }
    if (flag2 == 0) {
      printf("YES\n");
    } else
      printf("NO\n");
  }
  return 0;
}
