Question d’entretien chez Pinterest

Medium level leetcode question, overlapping intervals