AppFolio interview question

numerical string value computation with test cases and subproblems.