Pregunta de entrevista de Meta

Leetcode medium difficulty problem about intervals.