Talent Systems interview question

Actually they were asking all the questions from Leetcode LeetCode #322 — Coin Change