assignment 1: countingChange preimplementation
assignment 1: reduceMany impl