def compareconfigs(fileconfig, liveconfig):
    """
    Compare two lists of forwarded zones.
    """
    # Make sets from the input arrays
    file_set = set(fileconfig)
    unbound_set = set(liveconfig)

    # Set of forward zones to be added to live config
    zoneadd = file_set.difference(unbound_set)

    # Set of forward zones to be removed from live config
    zoneremove = unbound_set.difference(file_set)

    return (zoneadd, zoneremove)