Qualtrics interview question

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