A1/E3 counting change problem solution