Morgan Stanley interview question

Write a piece of code that will create a deadlock.