Drivers code
public static void Main ( String [ ] args ) { String s = "100010001000" ; int l = s . Length ; if ( check ( s , l ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }