Goldman Sachs interview question

write a program for palindrome in java