Microsoft interview question

Merging intervals question. Arrays, sorting.