Python3 Solution
\n\nclass Solution:\n    def getWinner(self, arr: List[int], k: int) -> int:\n        n=len(arr)\n        cur=arr[0]\n        count=0\n        for i in range(1,
\n```\nclass Solution:\n    def getWinner(self, arr: List[int], k: int) -> int:\n        n=len(arr)\n        cur=arr[0]\n        count=0\n        for i in range(1,n):\n            if arr[i]>cur:\n                cur=arr[i]\n                count=0\n            count+=1\n            if count==k:\n                break\n        return cur            \n```
['Python', 'Python3']