Question d’entretien chez TikTok

Solve N queen problem. How many possible ways are there?