State Farm interview question

Check for valid number palindrome