Driver Code
public static void Main ( String [ ] args ) { String S = " geeksforgeeks " ; pair [ ] Q = { new pair ( 2 , 4 ) , new pair ( 0 , 3 ) , new pair ( 0 , 12 ) } ; calculateCount ( S , Q , 3 ) ; } }