solution for LeetCode Reverse words and Evaluate reverse polish notation