Optimize MapReduce performance | Anthropic Interview Question