Amazon interview question

output binary tree by level