Having both left and right child
else : NEW_LINE INDENT if ( Dir == ' l ' ) : NEW_LINE INDENT findMaxBendsUtil ( node . left , Dir , bends , maxBends , soFar + 1 , Len ) NEW_LINE findMaxBendsUtil ( node . right , ' r ' , bends + 1 , maxBends , soFar + 1 , Len ) NEW_LINE DEDENT else : NEW_LINE INDENT findMaxBendsUtil ( node . right , Dir , bends , maxBends , soFar + 1 , Len ) NEW_LINE findMaxBendsUtil ( node . left , ' l ' , bends + 1 , maxBends , soFar + 1 , Len ) NEW_LINE DEDENT DEDENT