Tackling repeat values in the tree


#1

The question assumes that in case of the repeat values, one of them is a root, and other goes into the right sub tree. So, to pass the test cases, one needs to take care of inequalities.