MathWorks Interview Question

Leetcode 255. Validate a tree traversal