Here
Using regular dp will be hard to handle the duplication. Thus, we introduce the knapsack problem.
After using coin[i - 1], with coins[i]. What we can do about it?
coin[i - 1]
coins[i]