Morgan Stanley interview question

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