from typing import List


class Solution:

    def repeatedNTimes(self, A: List[int]) ->int:
        found = {}
        for elem in A:
            if found.get(elem, 0) != 0:
                return elem
            found[elem] = 1
        return -1

606597873d3159b739552aadba282c615d87c83b
<mask token>

<mask token>


class Solution:
    <mask token>

<mask token>


class Solution:

    def repeatedNTimes(self, A: List[int]) ->int:
        found = {}
        for elem in A:
            if found.get(elem, 0) != 0:
                return elem
            found[elem] = 1
        return -1

from typing import List


class Solution:

    def repeatedNTimes(self, A: List[int]) ->int:
        found = {}
        for elem in A:
            if found.get(elem, 0) != 0:
                return elem
            found[elem] = 1
        return -1
