In the place call we were incrementing col with col+1 previously now we place 0 as col so how we will increment column in case .The test case col==board.length then row++ and col=0 why do we need this base case in NQueens because we are incrementing row in place call