Problem
Implement a calculator that evaluates a string arithmetic expression with +, -, *, / and parentheses, respecting operator precedence.
Input / Output
"3+2*2").Constraints
*// bind tighter than +/-).Example
"3+2*2" → 7."(1+(4+5+2)-3)+(6+8)" → 23.