IMC Trading Interview Question

Stack implementation with additional value based operations