Pergunta de entrevista da empresa Morgan Stanley

Write a piece of code that will create a deadlock.