Stone Game

Alice and Bob play a game with a row of n piles of stones, where n is even. The number of stones in each pile is given in piles[i].

The objective of the game is to finish with the most stones. The total number of stones across all piles is odd, so there are no ties.

Alice and Bob take turns, with Alice going first. Each turn, a player takes the entire pile from either the beginning or the end of the row. This continues until there are no more piles left.

Assuming Alice and Bob play optimally, return true if Alice wins the game, or false if Bob wins.

Examples
Input: [5,3,4,5]
Output: true
Hints

Stone Game

Alice and Bob play a game with a row of `n` piles of stones, where `n` is even. The number of stones in each pile is given in `piles[i]`.