Vital Labs interview question

Write a program to test whether a given number is palindrome without using strings.