Domanda di colloquio di IMC Trading

The second problem is implementing a stack with the increment function.