AT&T Interview Question

Count denominations problem (it's a common one)