Question 1
4 marksDefine a contract for a function that finds conflicting booking identifiers without saving a booking. [4]
Show solution and marking guidance
Indicative answer
- Identify candidate/existing-booking inputs (1).
- State relevant preconditions such as valid intervals and comparable times (1).
- Return conflicting identifiers, or an empty collection when none exist (1).
- State that it does not mutate or save the supplied data (1).