Coin Flip Game

In a line of coins with positive integer values, two players take turns picking one coin from either end. Each player tries to maximize the total value they collect. Determine if the first player can achieve a strictly higher total than the second player with optimal play.

Examples
Input: [1,5,2]
Output: false
Hints

Coin Flip Game

In a line of coins with positive integer values, two players take turns picking one coin from either end. Each player tries to maximize the total value they collect. Determine if the first player can achieve a strictly higher total than the second player with optimal play.