def base_b(n: int, b: int):
    """
    Return the string representation of n in base-b.

    Example:
        base_b(11, 3) = '102'
    """

    e = n // b
    q = n % b
    if n == 0:
        return '0'
    elif e == 0:
        return str(q)
    else:
        return base_b(e, b) + str(q)