Thomson Digital interview question

Palindrome number code, array, hashmap, string