Medium
You are given coin denominations nums and a target amount k. Return the number of distinct combinations that make up the amount (order does not matter). Return 0 if impossible.
Input: nums = [1,2,5], k = 5 Output: 4
Input: nums = [2], k = 3 Output: 0