Given the root of a complete binary tree, return the number of nodes in the tree.
In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. The last level h can hold between 1 and 2h nodes.
Design an algorithm that runs in less than O(n) time.