Find the number of ways of climbing stairs with 3 jumps.
Assume each move can climb exactly 1, 2, or 3 stairs, and different jump sequences count as different ways. Given n, return the number of sequences that reach exactly stair n; define the result for n = 0 as 1.
Input: A non-negative integer n.
Output: An integer representing the number of valid sequences.
Examples:
n = 4 returns 7, from sequences such as 1+1+1+1, 1+3, and 2+2.n = 0 returns 1, representing the empty sequence.Constraints: 0 <= n <= 1000.
def climb_stairs_three_jumps(n):