Cognizant interview question

Writtren Test