Tempus AI interview question

Greedy coin change problem with error handling