Add Nested Begin, Commit, and Abort Semantics to a Shopping Cart
Company: Decagon
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: hard
Interview Round: Technical Screen
Overview: Extend an in-memory shopping cart with nested begin, commit, and abort operations while preserving correct state visibility. Compare snapshot and undo-based designs, define invalid-operation behavior, and test nested scope combinations, repeated item changes, discount caching, and future durability needs.