Walmart Global Tech interview question

The coin change problem from leetcode