solved [merge intervals]