Maximum Points You Can Obtain from Cards.
Asked in the Coding 1 stage. Given an array cardPoints and integer k, choose exactly k cards from either the beginning or the end and return the maximum possible score.
Implement def max_score(cardPoints, k):. Return an integer.
def max_score(cardPoints, k):