Yahoo interview question

Maximum value in a stack