def list_exp(s):
    """ expand array of strings by multiplying the strings with the leading number. """
    ret = []
    i = 0
    while i < len(s):
        for j in range(0, s[i]):
            ret.append(s[i+1])
        i += 2
    return ret