Question d’entretien chez Qualcomm

Write a function to traverse a tree in-order.