Philips interview question

Program on multithreading