Cognizant interview question

basics of programming