Function to find the next greater number with same number of 1 ' s ▁ and ▁ 0' s
static String nextGreaterWithSameDigits ( char [ ] bnum ) { int l = bnum . Length ; int i ; for ( i = l - 2 ; i >= 1 ; i -- ) {