Java Simple 1ms
\nclass Solution {\n    public int getWinner(int[] arr, int k) {\n        \n        int i=0;\n        int j=1;\n        \n        int cnt=0;\n        while(true
```\nclass Solution {\n    public int getWinner(int[] arr, int k) {\n        \n        int i=0;\n        int j=1;\n        \n        int cnt=0;\n        while(true)\n        {\n             if(arr[i]>arr[j])\n              cnt++; \n            else\n            { cnt=1; i=j; }   \n            \n            if(cnt==k || j ==arr.length-1)\n               return arr[i]; \n            j++;\n              \n          } \n    }\n}\n```
[]