DP: get min number of coins for a sum