Atos-Syntel Interview Question

Asked to write a Java palindrome program.