merge intervals      Accepted