Driver Program
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT n = 5 NEW_LINE m = 4 NEW_LINE mat = [ [ 0 , 0 , 1 , 1 ] , [ 0 , 0 , 1 , 0 ] , [ 0 , 1 , 1 , 1 ] , [ 1 , 1 , 1 , 1 ] , [ 0 , 1 , 1 , 1 ] ] NEW_LINE q = 2 NEW_LINE a = [ 2 , 2 ] NEW_LINE binary = [ 1 , 0 ] NEW_LINE solveQuery ( n , m , mat , q , a , binary ) NEW_LINE DEDENT