Seats are a shared, racing resource
The challenge
A seven-seat car with two people booking the last seat at once is the normal case on a popular route, and overselling means someone is left at the station.
The approach
Remaining seats are decremented in a single server-side operation rather than read-then-write, so a race resolves to one winner and a clean 'full' state for the other.
