Design a To-do List with External Completion Status
Design an in-memory to-do list whose reads combine stored entries with completion state from a supplied checker.
For this exercise, assume you are designing an in-memory To-do List in one process. add accepts a nonempty title, assigns monotonically increasing integer IDs starting at 1, stores the item, and returns its ID. delete returns whether an existing item was removed.
getItem returns the requested item or a not-found result, and getAll returns all remaining items in ascending ID order.
A supplied checkCompleted(entryId) dependency is the source of truth for whether an item is completed; getItem and getAll consult it at read time and include the current completed flag rather than storing completion state. Persistence and concurrent callers are out of scope.
Produce a cohesive object-oriented design, focused interfaces, and an interaction walkthrough without writing production code.