Calculate an arithmetic operation using operand and operator stacks. Arithmetic operation is given in string format.