Capgemini Engineering interview question

Multithreading