Teradata interview question

write a method that prints out a tree as indented lines