Question d’entretien chez Infosys

Palindrome program in java.they given some examples and we have to write a main method with java code