Given Tree
root = None NEW_LINE root = newNode ( 3 ) NEW_LINE root . left = newNode ( 4 ) NEW_LINE root . right = newNode ( 6 ) NEW_LINE root . right . left = newNode ( 4 ) NEW_LINE root . right . right = newNode ( 5 ) NEW_LINE root . left . left = newNode ( 10 ) NEW_LINE root . left . right = newNode ( 2 ) NEW_LINE max_v = 0 NEW_LINE rootIndex = - 1 NEW_LINE