Cognizant interview question

Scenario based