Sponsored
Use these hints if you're stuck. Try solving on your own first.
Treat each interval [start, end) as two events "start" and "end", and process them in sorted order.
Solve with full IDE support and test cases