Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 5 , 6 , 8 , 10 , 15 ] NEW_LINE N = len ( arr ) NEW_LINE queries = [ [ 0 , 1 ] , [ 0 , 2 ] , [ 1 , 4 ] ] NEW_LINE Q = len ( queries ) NEW_LINE findMaximum ( arr , N , Q , queries ) NEW_LINE DEDENT