Given coin denominations coins (unlimited supply) and an amount, return the fewest coins needed to make the amount exactly, or -1 if impossible.
Input
amountOutput: the fewest coins, or -1.
1 2 5 11
3
5 + 5 + 1.
2 3
-1
1 0
0
Run your code against the sample tests, or Submit to run the full suite.