Stripe interview question

resolve a testcase's runtime error