class Solution:

    def findSpecialInteger(self, arr: List[int]) ->int:
        lookup = Counter(arr)
        maxVal = max(lookup.values())
        return next(key for key, value in lookup.items() if value == maxVal)

c5d26737313647d289c9aebd14cd6af85dcb3125
<mask token>

class Solution:
    <mask token>

class Solution:

    def findSpecialInteger(self, arr: List[int]) ->int:
        lookup = Counter(arr)
        maxVal = max(lookup.values())
        return next(key for key, value in lookup.items() if value == maxVal)
