Company: wayfair_26oct
Difficulty: medium
Prime Jumps Problem Description A game is played with the following rules: A player starts at cell 0 with a score of 0. There is a row of n cells numbered from 0 to n-1 . Each cell has an assigned value, and cell 0 always has a value of 0. In each move, the player can either: Move one cell to the right. Move p cells to the right, where p is a prime number ending in 3 (such as 3 or 13). The player cannot move beyond the last cell. When the player lands on a cell, its cell value is added to the score. The game concludes when the player lands on the final cell, n-1 . Determine the maximum possible score. Function Description Complete the function maxGameScore in the editor with the following parameter(s): int cell[n] : the cell values Returns: int : the maximum possible score Examples Example 1: Input: cell = [0, -10, -20, -30, 50] Output: 40 Explanation: There are n = 5 cells in the array, with cells numbered from 0 to 4. The player starts at cell 0 and can reach cells 1 and 3. The playe