What you are building
Given half-open workload intervals [start, end) with positive capacity demands and a fixed system capacity, design an algorithm that reports every maximal time range where total demand exceeds capacity. For each range, include the peak demand and the workload IDs active at the first violation point.