Datadog interview question

A modified coin change problem.