Delivery Hero interview question

Locking mechanism in relational databases