update solution to Calculate RPN