Amazon Interview Question

output binary tree by level