Adrosonic interview question

how deadlock occur in dbms