Fun Card Game
Two players take turns picking numbers from either end of an array. The game ends when the array is empty. The first player's score is the sum of numbers they picked, and the second player's score is the sum of numbers they picked. If the first player's score is strictly greater than the second player's, the first player wins. If scores are equal or the second player has more, the second player wins. Both play optimally. Return the maximum score the first player can achieve.