If grid contains atleast one 1 or 0
k = i ; o = j ; break ; } } if ( k != - 1 ) { break ; } } if ( k != - 1 ) { flag = PosCheck ( a , n , m , " " ) ; if ( flag ) { fill ( a , n , m , " " , " " ) ; } else { flag = PosCheck ( a , n , m , " " ) ; if ( flag ) { fill ( a , n , m , " " , " " ) ; } } } else {