input: Write a python function to find the minimum number of coins required to make a given amount.
  assert minCoins([1, 5, 10, 25], 4, 29) == 6
  assert minCoins([1, 2, 5], 3, 11) == 3
  assert minCoins([1, 5, 10], 3, 7) == 3
output: def minCoins(coins, m, V):
      table = [float('inf')] * (V + 1)
      table[0] = 0
      
      for i in range(1, V + 1):
          for j in range(m):
              if coins[j] <= i:
                  sub_res = table[i - coins[j]]
                  if sub_res != float('inf') and sub_res + 1 < table[i]:
                      table[i] = sub_res + 1
      
      return table[V]