// An instance method named product, which
// multiplies the values between min and max and
// returns the result. For example, if min = 6
// and max = 9, then this should return 3024
// (6 * 7 * 8 * 9). If min is greater than
// max, then this should return 1.
public int product() {
int runningTotal = 1;
for(int i = min; i < max + 1; i++) {
runningTotal += i;
}
return runningTotal;
}