Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 5 NEW_LINE queries = [ [ 2 , 1 ] , [ 1 , 1 ] , [ 2 , 1 ] , [ 2 , 3 ] ] NEW_LINE Q = len ( queries ) NEW_LINE Queries ( queries , N , Q ) NEW_LINE DEDENT