Pergunta de entrevista da empresa WeRide

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