Knapsack problems interprets correctly