Regarding CountNueens

Sir in countNqueens you are not incrementing value of count but in print you are can you please make me understand this thing

hi @saurabhananta,
See the count queen function has two parts . one is in which we only count number of possible ways … In that method we have the base case to return 1. Therefore one will be added as many times as we hit the base case means as many time we can place N queens which is the main objective of the question… Secondly the second function is to print in which we do not increment the count but only call the function pNqueens with a different argument and modified string which if hits the base case displays the string which contains the index of the place where queens are placed