Practice Problem

Coin Change II

Difficulty: Medium

Given an array of coin denominations and a target amount, return the number of distinct combinations that make up that amount. Each coin may be used an unlimited number of times.