You are given two aligned arrays, each containing n entries: operations, whose entries are either "push" or "pop", and values, which supplies the number for the corresponding action. Following every action, find the smallest and largest values currently present in the multiset, multiply them, and add that product to the output.
min_max_product(operations, values)
pop names a value absent from the multiset. Confirm the desired interview behavior before implementation, such as ignoring that request or raising an error.0 or null.