Jane Street interview question

BS model, algorithm coding(leedcode-hard, palindrome problem) Given an integer x, return true if x is a palindrome, and false otherwise.