Optimal game strategy suing recursion

error in my code ???

hello @hg11110000

change ur base case.
make it
if(i>j) return 0;