Returns maximum sum with adjacent levels not allowed . This function mainly uses getSumAlternate ( )
def getSum ( root ) : NEW_LINE INDENT if ( root == None ) : NEW_LINE INDENT return 0 NEW_LINE DEDENT DEDENT