Question d’entretien chez Warner Bros. Discovery

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