Amazon Interview Question

a counter question about couting numbers