Cognizant Interview Question

Not tat difficult