Implement a longest-match tokenizer | Anthropic Coding Question