Beats 100%🔥|| easy JAVA Solution✅
Code\n\nclass Solution {\n    public int getWinner(int[] arr, int k) {\n        int c=0;\n        int curr=arr[0];\n        for(int i=1;i<arr.length;i++){\n    
# Code\n```\nclass Solution {\n    public int getWinner(int[] arr, int k) {\n        int c=0;\n        int curr=arr[0];\n        for(int i=1;i<arr.length;i++){\n            if(curr<arr[i]){\n                curr=arr[i];\n                c=0;\n            }\n            c++;\n            if(c==k) return curr;\n        }\n        return curr;\n    }\n}\n```
['Java']