結果 : write the algorithm for 0 1 knapsack using dynamic programming