This question evaluates implementation skills including clear control flow, robust input validation, requirement clarification, and unit test design for a small service class.

You're given a short written specification for a small service class (no external dependencies). Implement the class using clear control flow (primarily if/else) and robust input validation. The exercise has three parts: (