Helper function to call findMaxBendsUtil ( )
def findMaxBends ( node ) : NEW_LINE INDENT if ( node == None ) : NEW_LINE INDENT return 0 NEW_LINE DEDENT Len = [ 0 ] NEW_LINE bends = 0 NEW_LINE maxBends = [ - 1 ] NEW_LINE DEDENT