Microsoft interview question

print out a binary tree by level