Visa2Fly interview question

Write a program in java to check the string is palindrome or not