Domanda di colloquio di Pinterest

Medium level leetcode question, overlapping intervals