SoFiSoftware Engineer · OnsiteCodemia practiceParse and Evaluate Configurable Card Fee Rule Expressions
Program managers define fee rules as text such as `min(max(2.50, amount * 0.015), 25)`. Write a parser and evaluator that supports numbers, variables, + - * /, unary minus, parentheses and min/max with any number of arguments, using exact decimal arithmetic and rounding the result to cents.