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