Fidelity Investments Interview Question

merge intervals problem was asked