Driver program to test above functions
int main ( ) { string s = " geeksforgeeks " ; int Q = 4 ; preProcess ( s ) ; cout << findCharFreq ( 0 , 5 , ' e ' ) << endl ; cout << findCharFreq ( 2 , 6 , ' f ' ) << endl ; cout << findCharFreq ( 4 , 7 , ' m ' ) << endl ; cout << findCharFreq ( 0 , 12 , ' e ' ) << endl ; return 0 ; }