Create a class of binary tree with a method to find the max value
time => O(logc) space => O(1)
I have solved it like iterate over the tree nodes and assign the value of the max to a value whenever it exists