[Javascript] Simple Solution O(min(k, arr_length))
\nvar getWinner = function(arr, k) {\n    let i = 1, winner = arr[0], winCount = 0;\n    while (i < arr.length && winCount < k) {\n        if (winner < arr[i]) 
```\nvar getWinner = function(arr, k) {\n    let i = 1, winner = arr[0], winCount = 0;\n    while (i < arr.length && winCount < k) {\n        if (winner < arr[i]) {\n            winner = arr[i];\n            winCount = 1;\n        } else {\n            winCount++;\n        }\n        i++;\n    }\n    \n    return winner;\n};\n```
['JavaScript']