func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int t;     cin >> t;     while (t--) {       string s;       cin >> s;       sort(s.begin(), s.end());       if (s[0] == s[s.size() - 1])         cout << -1 <<   n ;       else         cout << s <<   n ;     }   }   