Easy
A binary tree is univalued if every node has the same value. Given the root, return true if the tree is univalued, otherwise false.
root
true
false
Input: root = [1,1,1,1,1,null,1] Output: true
Input: root = [2,2,2,5,2] Output: false