func_code_string: #include <bits/stdc++.h>   using namespace std;   const double PI = acos(-1.0);   const double eps = 1e-6;   const int inf = 1e9;   const long long llf = 1e18;   const int mod = 1e9 + 7;   const int maxn = 1e5 + 10;   char s[110];   int f[310];   int main() {     int tc;     cin >> tc;     while (tc--) {       cin >> s + 1;       int n = strlen(s + 1);       sort(s + 1, s + n + 1);       string s1 =   , s2 =   ;       for (int i = 1; i <= n; i++) {         f[s[i]]++;       }       for (int i =  a ; i <=  z ; i++) {         if (i & 1) {           while (f[i]) {             s1 += i;             f[i]--;           }         } else {           while (f[i]) {             s2 += i;             f[i]--;           }         }       }       string t = s1 + s2;       int flag = 1;       for (int i = 1; i < t.size(); i++) {         if (abs(t[i] - t[i - 1]) == 1) {           flag = 0;           break;         }       }       if (flag) {         cout << t << endl;         continue;       }       t = s2 + s1;       flag = 1;       for (int i = 1; i < t.size(); i++) {         if (abs(t[i] - t[i - 1]) == 1) {           flag = 0;           break;         }       }       if (flag) {         cout << t << endl;       } else {         cout <<  No answer  << endl;       }     }     return 0;   }   