Sprig Interview Question

API design for a practical use case