Veeva Systems Interview Question

Construct a tree from a string format