Program for checking number of palindrome numbers between two numbers. This was a problem for the qualifying round in code jam. The time efficiency is the worst for this algorithm, and I am looking for better ways to solve the problem.