Knapsack With Duplicate Items Leetcode