Mental Model
Use a stack to keep numbers until an operator comes, then combine the last two numbers and push the result back.
Analogy: Imagine a chef stacking ingredients on a plate. When the chef gets a cooking instruction (operator), they take the last two ingredients, cook them together, and put the cooked dish back on the plate.
Stack (top at right): [] Postfix expression: 2 3 + 4 * Initial stack empty -> [] Numbers push on stack -> [2] -> [2,3] Operator '+' pops last two, adds, pushes result -> [5] Next number pushes -> [5,4] Operator '*' pops last two, multiplies, pushes result -> [20]
