Question d’entretien chez Groupon

Given a binary tree, write a function that takes as input an integer, and it prints out, comma separated, all values from the level of the tree corresponding to that number.