Pregunta de entrevista de IMC Trading

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