Cognizant interview question

based on concepts