Dynamic Programming: Knapsack - Coin Change II (Count Ways)
Consider the function
countWays(amount, coins) that returns the number of ways to make amount using unlimited coins from coins. What is the output of countWays(4, [1, 3, 4])?