For a positive integer n, a row of n cards is laid out, each showing a random positive integer. A legal move is to remove either the leftmost or rightmost card. Two players, A and B, take turns, with A going first. On each turn, A must take two cards if at least two remain, or one card if only one remains, while B takes exactly one card per turn. When all the cards have been taken, each player adds up the numbers on their cards, and A wins if the total value of the cards collected by A is at least two-thirds of the sum of all card values. The question asks for which values of n player A can guarantee a win regardless of how the numbers are arranged.
Could anyone provide a better way to approach this problem?
Thank you in advance.