Driver code
public static void Main ( String [ ] args ) { String s = "101010" ; int k = 2 ; if ( check ( s , k ) ) Console . Write ( " Yes " + " STRNEWLINE " ) ; else Console . Write ( " No " + " STRNEWLINE " ) ; } }