SAP interview question

Q. Write code/pseudo code to evaluate postfix notation equation