Design a batched inference API | Anthropic Interview Question