Domanda di colloquio di Warner Bros. Discovery

Interviewer asked on Coin change problem with infinite coins. It's a Dynamic programming problem