Cartesian product
We return Cartesian product of the "n" resulting intervals.