Amazon Interview Question

find the max element of the stack (with implementation)