Easy C++ Solution using simple approach :) 😎🔥
Subscribe to my channel for detailed explanation:\n# PLEASE SUBSCRIBE MY YOUTUBE CHANNEL NAMED "NexBug" :)\uD83D\uDE25\n\n# Code\n\nclass Solution {\npublic:\n 
# Subscribe to my channel for detailed explanation:\n# PLEASE SUBSCRIBE MY YOUTUBE CHANNEL NAMED "NexBug" :)\uD83D\uDE25\n\n# Code\n```\nclass Solution {\npublic:\n    int getWinner(vector<int>& arr, int k) {\n        int current=arr[0];\n        int win=0;\n\n        for(int i=1; i<arr.size(); i++){\n            if(arr[i]>current){\n                current=arr[i];\n                win=1;\n            }\n            else{\n                win++;\n            }\n\n            if(k==win)\n            break;\n        }\n        return current;\n    }\n};\n```\n\n# PLEASE UPVOTE \uD83D\uDE25\uD83D\uDE25\n\n![2023-09-18 (2).png](https://assets.leetcode.com/users/images/72192384-c295-4ee5-9ebf-be4c7579d33d_1699155308.803735.png)\n
['C++']