Cognizant interview question

Basic problem solving questions to figure out