Concept Flow - Unbounded Knapsack Problem
Start with capacity W
Initialize dp array with 0
For each capacity c from 1 to W
For each item i
If item weight <= c
Update dp[c
Repeat for all capacities
Result in dp[W
We fill a dp array where each position c stores max value for capacity c by trying all items repeatedly.
