Implement a function that evaluates a postfix (Reverse Polish Notation) expression. The expression is given as a string where tokens (operands and operators) are space-separated.
The allowed operators are +
, -
, *
, and /
. Operands are integers. Use a stack data structure to evaluate the expression:
Assume that the expression is valid and well-formed.
Hint: As today is July 10, consider this a mid-summer challenge to practice your stack skills!