#include using namespace std; bool pal(string s) { bool b=false; for(int i=0;i> s; //initialize(s); int q; cin >> q; for(int a0 = 0; a0 < q; a0++){ int l; int r; cin >> l >> r; int result = answerQuery(l, r,s); cout << result << endl; } return 0; }