TATA ELXSI interview question

write c code to find palidrome.