Evaluate arithmetic expression with precedence | Instacart Interview Question