Drivers code
public static void main ( String args [ ] ) { String s = "100010001000" ; int l = s . length ( ) ; if ( check ( s , l ) ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; } }