BINAR-TREE-LEVEL-ORDER-TRAVERSAL problem

solved with help of <deque>