[C147_E] Fixed "coin change" process, validated input. Needs refactoring.