Toyota North America interview question

Java programming to check a string is palindrome