Applied Materials interview question

Print binary tree by levels