Rakuten interview question

Level order of binary tree