Veeva Systems Interview Question

The question was not unexpected. Just review tree data structure and traversal algorithms.