Concept Flow - Coin Change Total Number of Ways
Start with ways array initialized to 0 except 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.
