Can I Win

Two players take turns choosing numbers from 1 to maxChoosableInteger. Each number may be used once. The player who causes the running total to reach or exceed desiredTotal wins. Determine if the first player can force a win with optimal play.

Examples
Input: [10,11]
Output: false
Hints

Can I Win

Two players take turns choosing numbers from 1 to maxChoosableInteger. Each number may be used once. The player who causes the running total to reach or exceed desiredTotal wins. Determine if the first player can force a win with optimal play.