Cognizant Interview Question

Basic java, basic code such as palindrome, basic data structures were asked.