Question d’entretien chez Bloomberg

How to implement a priority stack with two stacks