Cognizant Interview Question

based on concepts