What is the Reverse Polish for A - B * C + D
Answer: D
A B C go straight to output, stack is - *. Reduce since * ≥ +, sending * to output. Reduce again since - ≥ +, sending - to output. Then shift + to stack, output D, reduce and output +.