Codibly interview question

How to solve deadlock problem in code