Pregunta de entrevista de Veeva Systems

Write a function to build tree from given string.