Funky chess board - Backtracking


One test case is not passing. Please go through my code.

your logic is fine…just one change…no need to find starting row and col…it is given that your starting pos will be 0,0
refer this code for modification