Anthropic Interview Question

Implement some business logic in Python