Nqueen backtracking problem

it prints infinite time why it is

hello @ikshit9
check now->

Hi @aman212yadav
I want to know why it is printing 1 at the end

because in line 69, u are printing the return value of called function