Amazon interview question

a question about overlapping intervals and union