Dell Technologies Interview Question

How to print a binary tree in depth?