Question d’entretien chez Qualtrics

Write a function to print the values of a binary tree.