Function to check whether in a given binary string can we make number of 1 ' s ▁ greater ▁ than ▁ the ▁ number ▁ of ▁ 0' s by doing the given operation
static void isOnesGreater ( String S , int N ) { char [ ] st = new char [ S . length ( ) ] ; for ( int i = 0 ; i < S . length ( ) ; i ++ ) { st [ i ] = S . charAt ( i ) ; }