Cognizant Interview Question

basic algorithms like palindrome, prime number , etc., we questions about programming background.