Cognizant interview question

Mostly technical