Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ 1 , 3 , 4 , 1 , 5 , 1 , 5 , 3 ] NEW_LINE N = len ( arr ) NEW_LINE K = 4 NEW_LINE print ( maxCostToRemove ( arr , N , K ) ) NEW_LINE DEDENT