DXC Technology Interview Question

write a code for palindrome prime etc