Playtomic interview question

he discussed to me the solution to avoid optimistic locking