Pregunta de entrevista de Bloomberg

How to implement a priority stack with two stacks