Cognizant Interview Question

Basic programming questions which were easy