Infosys Interview Question

Write palindrome program in c as well as java.