https://leetcode.com/problems/min-stack/
class Solution:
def evalRPN(self, tokens: List[str]) -> int:
ops = "+-*/"
num = []
op = []
for e in tokens:
if e not in ops:
num.append(int(e)) # incease ["2"]
else:
x = num.pop()
y = num.pop()
if e == "+":
item = y + x
elif e == "-":
item = y - x
elif e == "*":
item = y * x
elif e == "/":
item = y / x
num.append(int(item)) # incase float
return num[0]