Given weights, values (both lists of integers) and a capacity, return the maximum total value you can fit in a knapsack of that capacity. Each item can be taken at most once.
Examples
solve([1,3,4,5], [1,4,5,7], 7) → 9 (items with weight 3+4, value 4+5)solve([2,3,4,5], [3,4,5,6], 5) → 7 (items weight 2+3)solve([1], [10], 0) → 0Constraints
1 ≤ n ≤ 100, 0 ≤ capacity ≤ 1000.Sample tests