Function to find the next greater number with same number of 1 ' s ▁ and ▁ 0' s
string nextGreaterWithSameDigits ( string bnum ) { int l = bnum . size ( ) ; int i ; for ( int i = l - 2 ; i >= 1 ; i -- ) {