Knapsack Leetcode Problem Practice