Driver Code
public static void Main ( ) { string S = " geeksforgeeks " ; int len = S . Length ; int [ , ] mat = new int [ MAX , CHAR_SIZE ] ; precompute ( mat , S , len ) ; string get = query ( mat , " gg " , len ) ? " Yes " : " No " ; Console . WriteLine ( get ) ; get = query ( mat , " gro " , len ) ? " Yes " : " No " ; Console . WriteLine ( get ) ; get = query ( mat , " gfg " , len ) ? " Yes " : " No " ; Console . WriteLine ( get ) ; get = query ( mat , " orf " , len ) ? " Yes " : " No " ; Console . WriteLine ( get ) ; } }