Example 1

The number of nodes in the tree is in the range [1, 105].0 <= Node.val <= 106At most 105 calls will be made to hasNext, and next.Example 1

The number of nodes in the tree is in the range [1, 105].0 <= Node.val <= 106At most 105 calls will be made to hasNext, and next.