from typing import Sequence
from functools import reduce
from operator import mul


def prod(digits: Sequence[str]) -> int:
    """
    Returns the product of a string of digits.
    """
    return reduce(mul, map(int, digits))