Metafic interview question

palindrome of number SQL query