Cognizant interview question

puzzel