Domanda di colloquio di Weavr

what's the optimistic locking and how to implement it?