Minimum number of cameras needed to monitor a binary tree.
Asked in the technical stage. Implement a function that returns the minimum number of cameras needed so every node is monitored. A camera at a node monitors its parent, itself, and its immediate children.
def minCameraCover(root):
root is the root of a binary tree.
Return an integer, the minimum number of cameras required.
def minCameraCover(root):