Driver code
public static void Main ( ) { String str = " geeksgeeks " ; int len = str . Length ; int k = 5 ; if ( isKPeriodic ( str , len , k ) ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }