def multiply(string, times):
    """
    Repeats a string a given number of times.
    :param str string: given string
    :param number times: number of repeats
    :return str: repeated string
    """
    return string * times