Design a stack for a HashedIn request-processing component that supports retrieving the smallest stored value without scanning the stack. Implement get_min(operations) to process a sequence of stack commands and return the result of every getMin command.
The input is a list of operations. Each operation is represented as a list:
["push", value] adds integer value to the top of the stack.["pop"] removes the top element.["getMin"] returns the smallest value currently in the stack.Return a list of integers containing the results of getMin operations in their original order. The stack is initially empty. Every pop and getMin operation is guaranteed to be valid when executed.
def get_min(operations):