Optimal game strategy-1


1 test case is failing. can you tell me whats wrong with the code