DXC Technology Interview Question

basic programming questions like prime no. and palidrome number