Amazon Interview Question

a question about overlapping intervals and union