Solve EPI problem 8.1, "stack w/ max operation"