Pergunta de entrevista da empresa Fidelity Investments

merge intervals problem was asked