Pregunta de entrevista de Meta

Asked a question about strings, and trees