Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ 8 , 4 , 4 , 8 , 12 , 3 , 2 , 9 ] NEW_LINE K = 3 NEW_LINE n = len ( arr ) NEW_LINE print ( maxPointCount ( arr , K , n ) ) NEW_LINE DEDENT