Pergunta de entrevista da empresa IMC Trading

There was an assignment about a stack, and one with minimum cost