Question d’entretien chez Morgan Stanley

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