Find the number of ways to make change for amount W using given coin denominations of infinite supply.
{ "coins": [ 1, 2, 3 ], "W": 4 }
4
{ "coins": [ 2, 5, 3, 6 ], "W": 10 }
5
{ "coins": [ 1 ], "W": 5 }
1
Sign in to Run Code and Submit