Capgemini Engineering interview question

Write a program for Multithreading