Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ [ 1 , 5 ] , [ 2 , 0 ] , [ 3 , 0 ] , [ 4 , 0 ] , [ 5 , 5 ] , [ 6 , 5 ] ] NEW_LINE n = len ( arr ) NEW_LINE print ( findRoot ( arr , n ) ) NEW_LINE DEDENT