# min_max_stack is an array of dictionary, which is the same length of stack self.min_max_stack = [] # an array of dictionary of min and max key ...