Refer for code: -
TLE in one test case and WA in one test case
@ambuj_0909
N is till 11, so take dimensions of the boards correctly(not 10).
Also for WA, if(nextpossible) statement, if it is true then you need not to return anything otherwise it will not call the recursion for the remaining cases and will stop there.
@ambuj_0909
Let me know if it is not clear to you still. Otherwise please mark this doubt as resolved.