Lytx interview question

Algorithmic questions about strings and trees.