IMC Trading interview question

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