Here you are Different An array of integers arr And an integer k .
Each round of the game is in the first two elements of the array （ namely arr and arr ） Carry out between . Compare arr And arr Size , A larger number will win the round and remain in place 0 , The smaller integers are moved to the end of the array . When an integer wins k For consecutive rounds , Game over , This integer is the match's Winner .
Returns the whole number that won the game .
Subject data Guarantee There are winners in the game .
Input ：arr = [2,1,3,5,4,6,7], k