Getting wrong answer
Knapsack 0-N Problem
@dsingh200021 hey darshpreet make a seperate function which is easy to understand
and problem is that in your code use memset to mark the array
and you have to use seperate loop if you declare i in above the i value may change to grabage