Company: Uber_all
Difficulty: medium
Find the Winner! Problem Description Your task is to determine the winner of a card game played between Andrea and Maria. Both players have a deck of n cards. The cards are represented by two integer arrays, andrea and maria . The game proceeds as follows: At the beginning of the game, a string s is chosen, which is either "Even" or "Odd". If s is "Even", the game is played only on the cards at even indices (0, 2, 4, ...). If s is "Odd", the game is played only on the cards at odd indices (1, 3, 5, ...). In each round (for each applicable index i ), the players compare their cards. Andrea's score changes by ( andrea[i] - maria[i] ), and Maria's score changes by ( maria[i] - andrea[i] ). After all applicable rounds are played, the player with the higher total score is declared the winner. If their scores are equal, it's a tie. Complete the function winner which takes the two arrays of card values and the starting call string s , and returns the name of the winner ("Andrea", "Maria") or