CDK Global interview question

Find whether a no. is palindrome or not using data structures