WeRide interview question

Dynamic programming question on combinations to add up to a target number.