Help me in solving The N Queens Puzzle Revisited problem

My issue

can u givw me the correct code

My code

# cook your dish here

Problem Link: The N Queens Puzzle Revisited Practice Coding Problem