Pergunta de entrevista da empresa Dell Technologies

How to print a binary tree in depth?