Amazon Interview Question

Solid principles and optimistic locking in detail