Morgan Stanley interview question

Multithread sync questions.