Amazon interview question

Question on leetcode (merge intervals)