give integer array arr distinct integer integer kA game play element array ie arr0 arr1 in round game compare arr0 arr1 large integer win remain position 0 small integer move end array the game end integer win k consecutive roundsreturn integer win gameIt guarantee winner game Example 1input arr 2135467 k 2output 5explanation Lets round gameRound arr winner win_count 1 2135467 2 1 2 2354671 3 1 3 3546712 5 1 4 5467123 5 2so 4 round play 5 winner win 2 consecutive gamesExample 2Input arr 321 k 10output 3explanation 3 win 10 round consecutively constraints2 arrlength 1051 arri 106arr contain distinct integers1 k 109