Knapsack problem - Course 3