Pergunta de entrevista da empresa Bloomberg

it was prefix minimum problem to maintain the minimum using a stack so you can handle the pop and getMin effciently.