EPAM Systems interview question

coin change problem