Driver code
public static void Main ( string [ ] args ) { string s = " geeksforgeeks " ; int Q = 4 ; preProcess ( s ) ; Console . WriteLine ( findCharFreq ( 0 , 5 , ' e ' ) ) ; Console . WriteLine ( findCharFreq ( 2 , 6 , ' f ' ) ) ; Console . WriteLine ( findCharFreq ( 4 , 7 , ' m ' ) ) ; Console . WriteLine ( findCharFreq ( 0 , 12 , ' e ' ) ) ; } }