Zluri interview question

N Queens problem Sort a list