TikTok Interview Question

Knapsack with repetition, multiply numbers as strings