Pergunta de entrevista da empresa Egnyte

Merge intervals- merge all overlapping intervals