MathWorks Interview Question

How do u traverse a tree level wise