GoDaddy interview question

Merge interval question which is on leetcode