Capgemini Interview Question

Thread mechanism