Cognizant Interview Question

Question from my favourite subject