Concept Flow - Coin Change Total Number of Ways
Start with amount = 0
Initialize ways array with ways[0
For each coin in coins
For each amount from coin to target
Update ways[amount
Repeat for all coins
Result is ways[target
We build up the number of ways to make each amount by adding ways contributed by each coin step-by-step.
