Intel Corporation interview question

traverse a binary tree and print each layer