Count N-Queen Partially correct

Testcase #1 is showing wrong answer.