Pergunta de entrevista da empresa Codibly

How to solve deadlock problem in code