Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT A = [ 1 , 2 , 2 , 4 , 5 ] NEW_LINE B = [ 5 , 5 , 5 , 6 , 6 ] NEW_LINE N = len ( A ) NEW_LINE print ( MaxRearrngeSum ( A , B , N ) ) NEW_LINE DEDENT