IMC Trading interview question

Stack implementation with additional value based operations