Saviynt access-request processing needs a stack that can retrieve the lowest risk score currently present without scanning all pending requests. Implement process_min_stack(operations) to process stack commands while ensuring every command runs in O(1) time.
operations is a list of commands. A push command has the form ["push", value]; pop and minimum queries have the forms ["pop"] and ["get_min"].value is an integer.pop and get_min command, in execution order. Push commands produce no output.pop or get_min on an empty stack.def process_min_stack(operations):