01 Knapsack Using Dynamic Programming Leetcode Question