def remove_repeated_asn(path):
    """ remove repeated ASN in the give path

    Args:
        path (list of ASN): ASN can be int for str if IXP hop

    Returns:
        list of ASN
    """
    removed = []
    for idx, hop in enumerate(path):
        if idx == 0:
            removed.append(hop)
        elif hop != path[idx-1]:
            removed.append(hop)
    return removed