Coforge interview question

java programs to check longest pallendrom