Check whether the given string is K reducing string or not
var check = false ; for ( var i = n / k ; i < n ; i += n / k ) { if ( no_of_zeroes === i no_of_ones === i ) { check = true ; break ; } } if ( check === false ) { return " " ; }