Frage im Vorstellungsgespräch bei Morgan Stanley

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