How to evaluate an expression using Reverse Polish Notation?