Is the challenge-Optimal game strategy a question of dynamic programming?

Can anyone plz get the simple method to solve other than DP?

@Agam_virgo, yes this is indeed a dynammic programming question, but if you don’t know dp yet then solve this question using recursion , dp is just a further optimisation over recursive solution, so solve it using recursion now and optimize it when you have some insight on dp

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.