Implement a stack that can return the minimum value in constant time.
Implement min_stack(operations), where each operation is ['push', value], ['pop'], or ['getMin']. Return the values produced by pop and getMin in execution order. Inputs never pop from or query an empty stack.
def min_stack(operations):