Reported interview periodMar 2026–Sep 2026
Evaluate an arithmetic string
Write solve(raw: str) -> str that evaluates one arithmetic expression and returns its integer value as text.
Practice focusRequirements - The expression contains non-negative integers, single spaces, and the operators + , - , , and / . There are no parentheses, no unary minus, and no exponentiation. - and / bind more tightly than + and - ; work left to right inside each precedence level. - / is integer division that truncates toward zero, so -3/2 truncates to -1 if a lead-in subtraction makes the intermediate negative. - Ignore every space and read the run of digits between operators as one number.…