Cognizant interview question

JAVA multi threaded