TikTok interview question

Knapsack with repetition, multiply numbers as strings