Intervals Problem