Given the root of a binary tree, determine whether it is a full binary tree — every node has either zero or two children (no node has exactly one child). Return true or false. The tree is given as a level-order array with null for missing children.
Input: A level-order array of the tree.
Output: Boolean — true or false.
Input: [1,2,3,4,5,6,7]
Output: true
Explanation: Every node has 0 or 2 children.Input: [1,2,null,3,4]
Output: false
Explanation: Node 2 has one child.Input: [1]
Output: true
Explanation: Single node (a leaf).0<=nodes<=10^4-1000<=value<=1000