Introduction - If you have any usage issues, please Google them yourself
It is a knapsack problem.In wic we have profit and corresponding weights.We have a knapsack value in weight.We will take weights according to that way that profit should be maxm.This code ll give yuh that optimal profit.