Qualtrics Interview Question

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