Not getting the correct output


here is my code

@Vipul.kapoor
I have no idea what is the exact problem you are trying since you have asked this doubt on N Queen problem. Please ask your doubts on the current problem that you are trying or it would waste both our time.
Also, I can see no problem with the code as far as permutations are concerned. Just make the function of void type. No point in making it of int type. The permutations are being printed just fine.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.