Qualcomm interview question

Write a function to traverse a tree in-order.