My second solution is not printed correctly. i cant find the mistake

This is my code for Nqueen problem -E.g for n=4, the second solution has two Q placed in the same row.
i cant find my mistake

hi @anushreemahur5

for printing all solutions
you have to return false in base case at line 56

this is modified code

Modified Code

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course