Vital Labs Interview Question

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