Metron, Inc. Interview Question

Merge intervals on leetcode, Medium