Solving an Integral Equation Arising from the Ruin Probability of Long-term Bonus-Malus Systems