Capgemini interview question

Java, multithreading