Applied Materials Interview Question

How to print a tree in horizontal order