Qualcomm Interview Question

Write a function to traverse a tree in-order.