Adrosonic interview question

Deadlock conditions