Leetcode, Interval, Interview Questions, Google, Meta.
whenever we encounter a start event and counter becomes 1 at that event till we find an end event and counter becomes 0 at that event. Repeatedly follow this to find the intervals with at-least one task ongoing. For the intersection, we start our tracking whenever we encounter a start event and