Challenge
Design payment flows that preserve balance correctness under retries, duplicates, and high-contention account updates.
- Idempotent UETR transaction handling.
- Immutable double-entry ledger records.
- Balance consistency checks after state transitions.