Wouldn't it make sense to start with the largest 3 digit number and work your way down till you get a palindrome since you are interested in the largest and not the smallest.