Domanda di colloquio di Morgan Stanley

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