refactor coupon_collectors_problem