Driver code
public static void main ( String [ ] args ) { String str = " geeksforgeeks " ; int queries [ ] [ ] = { { 1 , 3 } , { 2 , 4 } , { 1 , 9 } } ; int q = queries . length ; performQueries ( str , queries , q ) ; } }