Applied Materials interview question

How to print a tree in horizontal order