Cognizant Interview Question

multi threading implementation