Stripe Interview Question

resolve a testcase's runtime error