The palindrome check is achieved by first converting the integer to a string, then comparing it to the reversed value of that string
Harisankar P S
gem "is_palindrome", "~> 1.0.1"