How to assess Reverse Polish Notation expressions in LeetCode?