solution to Evaluate Reverse Polish Notation