Very simple implementation of this problem. If an OO design is preferred
then you could init with num and the number of integers to use for
calculating product.