AppFolio Interview Question

numerical string value computation with test cases and subproblems.