Design distributed median and mode | Anthropic Interview Question