TeamApt interview question

Explain Database Locking using any database