Google interview question

N children tree, Tree traversals