Teya Interview Question

- Difference between optimistic and pessimistic lock