Essex Management interview question

Scanner Write Java code for palindrome