maximum value from stack

method returns the maximum value from the stack without using other data structures (including other stacks)