DXC Technology Interview Question

Write C program for Palandrom.