Deloitte Interview Question

Coding question on number palindrome