Pearson interview question

Palindrome Java question and explain the code lines one by one.