Structure to represent a query . A query consists of ( L , R ) and we have to answer whether the substring from index - L to R is a palindrome or not
static class Query { int L , R ; public Query ( int L , int R ) { this . L = L ; this . R = R ; } } ;