Pregunta de entrevista de Dell Technologies

How to print a binary tree in depth?