XYZ Interview Question

write palindrome program. about Java oops concepts