New 21 Game

Alice plays the following game, risking her mental health:

Alice starts with 0 points and draws numbers while she has fewer than k points. During each draw, she gains an integer number of points randomly from 1 to maxPts, where each value is equally likely.

Return the probability that Alice has n or fewer points when she stops drawing.

Examples
Input: [10,1,10]
Output: 1
Hints

New 21 Game

Alice plays the following game, risking her mental health: