Pergunta de entrevista da empresa Morgan Stanley

Write an algorithm that returns the smallest element on a stack.