Morgan Stanley Interview Question

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