Axon Interview Question

Strings and trees