def factorial_recur(n):
    """Nth number of factorial series by recursion.

    - Time complexity: O(n)
    - Space complexity: O(n).
    """
    # Base case.
    if n <= 1:
        return 1

    return n * factorial_recur(n - 1)