Cognizant interview question

Not tat difficult