Pregunta de entrevista de Anthropic

Implement some business logic in Python