Cognizant interview question

Basic coding questions like palindrom, array questions are asked