Cognizant interview question

Threading