Easiest understanable solution you will find
\n\n# Code\n\nclass Solution {\npublic:\n    int getWinner(vector<int>& arr, int k) {\n        int curr = arr[0]; \n        int win = 0;\n        for(int i = 1 
\n\n# Code\n```\nclass Solution {\npublic:\n    int getWinner(vector<int>& arr, int k) {\n        int curr = arr[0]; \n        int win = 0;\n        for(int i = 1 ; i <arr.size() ; i++){\n            if(arr[i] > curr){\n                curr = arr[i];\n                win = 0 ;\n            }\n            win++ ;\n            if(win == k)\n            break;\n        }\n        return curr;\n    }\n};\n```
['C++']