Help with destroyers
I don't understand how to take the input parameter as an index to generate the winner. I need help with this exercise. In the TV intellectual game, 5 participants advanced to the final round, and it is time to show the winner and finish the game. The given program defines the set of finalists, takes the winner's index as input, and creates the FinalRound object. Complete the FinalRound class - write the necessary code in the constructor to take the winner's array and index as a parameter and generate the corresponding message to display the winner. Then create the destroyer to end the game and generate "Game Over". Input example two Output example Winner is Leyla Brown Game over This is my code: https://code.sololearn.com/cc20XaaiELqs/?ref=app