Wrong Test Case breaking condition


#1

Hi Anshuman Singh, my trivial solution is working but after submission, it breaking in " * No guarantee that val1 and val2 exist in the tree. If one value doesn’t exist in the tree then return -1." this condition. It is returning 24 instead of -1.