def array2String(ar,delim):
    """
    convert array value to String with delim
    """
    res = ""
    for i in range(len(ar)):
        if i>0:
            res +=delim
        res += str(ar[i])
    return res