input: Write a python function to find the minimum number of coins required to make a given amount.
  assert findMinCoins([1, 4, 6], 9) == 2
  assert findMinCoins([1, 2, 5], 11) == 3
  assert findMinCoins([2], 3) == float('inf')
output: def findMinCoins(coins, amount):
      dp = [float('inf')] * (amount + 1)
      dp[0] = 0
      
      for coin in coins:
          for x in range(coin, amount + 1):
              dp[x] = min(dp[x], dp[x - coin] + 1)
      
      return dp[amount] if dp[amount] != float('inf') else float('inf')