結果 : knapsack problem in data structure with example