Pregunta de entrevista de Citi

Write a program that determines if a string is a valid palindrome (Java).