import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static char[] arr; static void initialize(String s) { arr = s.toCharArray(); } static int answerQuery(int l, int r) { // Return the answer for this query modulo 1000000007. int x = 0; Set set = new HashSet<>(); for (int i = l-1;i