Deutsche Telekom interview question

what does database internally do the locking