OPTIMAL GAME STRATEGY -1


can you tell that how one test case is not passing
whats wrong in code

This question has a set approach to it.
Please follow that and try to code it.