Reverse Polish Notation Calculator

a+b ---> a b +
a+(b-c) ---> a b c - +
a+(b-c)*d ---> a b c - d * +
a+d*(b-c)---> a d b c - * +