func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     string s;     cin >> s;     s =  $  + s;     int n = s.length();     vector<vector<int>> c(n, vector<int>(26, 0));     for (int i = 1; i < n; i++) {       for (int j = 0; j < 26; j++) {         c[i][j] += c[i - 1][j];       }       c[i][s[i] -  a ]++;     }     int q;     cin >> q;     while (q--) {       int l, r;       cin >> l >> r;       int d = 0;       for (int j = 0; j < 26; j++) {         d += ((c[r][j] - c[l - 1][j]) > 0);       }       cout << ((l == r or s[l] != s[r] or d > 2) ?  Yes n  :  No n );     }   }   