Pergunta de entrevista da empresa Google

Write a stack that keeps track of min and max elements.