import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static String inpStr; static void initialize(String s) { // This function is called once before all queries. inpStr=s; } static int answerQuery(int l, int r) { // Return the answer for this query modulo 1000000007. char[] workStr=(inpStr.substring(l-1,r)).toCharArray(); int counter=0; List list=new ArrayList(); //System.out.println(inpStr.substring(l-1,r)); for(int i=0;i