Cognizant interview question

basics