結果 : solve the following knapsack problem using dynamic programming