Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ 1 , 3 , 2 , 5 ] NEW_LINE queries = [ 3 , 4 , 1 , 2 ] NEW_LINE N = len ( arr ) NEW_LINE maxValues ( arr , queries , N ) NEW_LINE DEDENT