Project euler palindrome solution