Reverse Polish Notation

classic case of stack.

  1. pop two number from stack and calculate if current token is a notation
  2. push to stack if current token is number