Domanda di colloquio di hCentive

how to solve 8 queen problem? some database question.