Morgan Stanley interview question

Multi-thread, dead lock