Infosys interview question

Multithreading