Pregunta de entrevista de Microsoft

Merging intervals question. Arrays, sorting.