EPAM Systems Interview Question

coin change problem