Calculate the total number of ways to climb n stairs if you can take 1, 2, or 3 stairs at a time.
Implement climb_stairs(n), which accepts a non-negative integer n and returns the number of distinct ordered sequences of steps that reach exactly stair n. Treat the empty sequence as one way to reach stair 0. Return the result as a Python integer.
def climb_stairs(n):