Axon interview question

Strings and trees