Goldman Sachs Interview Question

write a program for palindrome in java