Tree Structure in Node.js BFS => Breadth First Search Note: Only 1 leaf node is allowed in this code.