finds the maximum product of subsets

consecutive numbers in subsets