Morgan Stanley Interview Question

Multi-thread, dead lock