Citi interview question

Multithreading concepts