Fulgent interview question

Merge intervals from leetcode medium