Function that returns true if it is possible to make a binary string consisting of l 0 ' s , ▁ m ▁ 1' s , x "01" sub - sequences and y "10" sub - sequences
bool isPossible ( int l , int m , int x , int y ) { if ( l * m == x + y ) return true ; return false ; }