You are given an integer array `coins` representing coins of different denominations and an integer `amount` representing a total amount of money. Return the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return `-1`.
Dynamic Programming (Bottom-up)
We build a DP table `dp[i]` which represents the minimum number of coins to make up amount `i`. For each amount `i` from 1 to `amount`, we try each coin in `coins`. If we use a coin `c`, the number of coins is `1 + dp[i - c]`. We take the minimum of these values.