Pseudocode
Stack with max operation