func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios::sync_with_stdio(false);     string s;     cin >> s;     int br = 0;     for (int i = 0; i < s.size() / 2; i++) {       if (s[i] == s[s.size() - i - 1]) continue;       br++;     }     if (br >= 2 || br == 0) {       if (s.size() % 2 == 1 && br == 0) {         cout <<  YES ;         return 0;       }       cout <<  NO  << endl;     } else {       cout <<  YES  << endl;     }     return 0;   }   