BigWorks interview question

Write a java program for palindrome