Question d’entretien chez Dell Technologies

How to print a binary tree in depth?