50 is also could ba used as a change, 25+50 is a valid change for 100, so "YES"

We have 0 change jn start. 25 - have 25, 50 - give 25 as a change, have 50, 25 - have 25 & 50, 100 - now give 25+50 as a change, have 0, and so on...

throw new Error('descriptive text');

50 is also could ba used as a change, 25+50 is a valid change for 100, so "YES"

We have 0 change jn start. 25 - have 25, 50 - give 25 as a change, have 50, 25 - have 25 & 50, 100 - now give 25+50 as a change, have 0, and so on...

throw new Error('descriptive text');