ABB interview question

Explain when can the deadlock happens.