Question d’entretien chez Microchip Technology

Medium leetcode question, merge intervals