DP: Coin Change | HackerRank

Given $m$ distinct dollar coins in infinite quantities, how many ways can you make change for $n$ dollars?