Problem
Design an ATM that authenticates cards, processes withdrawals, deposits, and balance checks, and coordinates internal hardware
- Enforce a strict session lifecycle where each phase only permits legal operations
- Keep remote debits and physical cash dispense consistent with a compensating rollback
- Prove current bills can form the exact requested amount before mutating any state
Key Test Points
- State pattern
- Validate-before-mutate ordering
- Largest-denomination-first allocation
Spot an issue or have a suggestion?