Simple C++ Solution
Code\n\nclass Solution {\npublic:\n    int getWinner(vector<int>& arr, int k) {\n        int winner = arr[0];\n        int cnt = 0;\n        for(int i=1;i<arr.s
# Code\n```\nclass Solution {\npublic:\n    int getWinner(vector<int>& arr, int k) {\n        int winner = arr[0];\n        int cnt = 0;\n        for(int i=1;i<arr.size();i++){\n            if(winner > arr[i])\n                cnt++;\n            else{\n                winner = arr[i];\n                cnt=1;\n            }\n            if(cnt==k)\n                return winner;\n        }\n        return winner;\n    }\n};\n```
['Array', 'Two Pointers', 'Simulation', 'Iterator', 'C++']