結果 : explain n–queens problem algorithm with an example