Yahoo Interview Question

Maximum value in a stack