Amazon interview question

Locks in databases