Deutsche Telekom Interview Question

what does database internally do the locking