Pergunta de entrevista da empresa Quantum-Systems

Describe a deadlock / how would you solve this problem?