Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate over every integer point in the range [left, right].
For each of these points check if it is included in one of the ranges.
Solve with full IDE support and test cases