def findFirstRepeater(data: list) -> int:
    """
    Loops over puzzleArray adding each value to
    frequency as with part 1, but loops over entire
    array until it adds the same number twice. Once
    found, returns that integer to submission.


    Args:
        data: puzzleArray from AOC

    Returns:
        first instance of repeated integer as per
            puzzle

    """
    frequencyDict = {}
    frequency = 0
    while True:
        for eachFrequency in data:
            frequency = frequency + eachFrequency
            if frequency not in frequencyDict.keys():
                frequencyDict[frequency] = 'Yes'
            else:
                return frequency
    return frequency