Synechron interview question

Multithreading