Scale interview question

How do tokenizers work? Explain BPE.