✅ Prefix to Postfix Conversion
💡 Rules:
- Scan the prefix expression right to left.
- If the token is an operand, push it to the stack.
- If the token is an operator, pop two operands from the stack.
- Combine as:
<operand1> <operand2> <operator>
- Push the resulting string back to the stack.
🧠 Example:
Prefix: + A * B C
Steps:
- Read C → push
- Read B → push
- Read * →
B C *
→ push - Read A → push
- Read + →
A B C * +
→ push
✅ Postfix: A B C * +
