Datadog Interview Question

a coin exchange question leetcode easy